package com.example.featuresdk.dao

import androidx.room.Dao
import androidx.room.Query
import com.example.featuresdk.dao.BasicDao
import com.example.featuresdk.model.User

@Dao
interface UserDao: BasicDao<User> {

    @Query("select * from user where id = :userId")
    suspend fun getOne(userId: Long): User

    @Query("select * from user")
    suspend fun getAll(): List<User>
}